@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
  height: 98%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.ml-10{
  margin-left: 10px;
}

.mt-5{
  margin-top: 5px;
}

.mt-15{
  margin-top: 15px;
}

.mt-30{
  margin-top: 30px;
}

.mb-30{
  margin-bottom: 30px;
}

.tr {
  text-align: right;
}

.tl {
  text-align: left;
}

.inline {
  display: inline;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: inline-block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 15px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 0px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }

  .search{
    width: 200px;
    margin-right: 10px;
  }

  .input-with-select .el-select {
    width: 110px;
  }

  .input-with-select .el-input-group__prepend {
    background-color: #fff;
  }

  .el-input__inner {
    height: 36px;
    line-height: 36px;
  }
  
  .el-input__icon {
    line-height: 36px;
  }
  .el-checkbox.is-bordered {
    height: 36px;
  }
  
  .el-date-editor {
    .el-range-separator {
      line-height: 36px;
    }
  
    .el-range__icon {
      line-height: 36px;
    }
  }
  
  .el-button {
    padding: 10px 20px;
  }

  
  .el-select {
    width: 170px;
  }

  .el-date-editor.el-input, .el-date-editor.el-input__inner {
    width: 150px;
  }

}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

.dialog-form{
  width:460px;
}

.defaut-input{
  width: 460px;
}

.loading-line{
  line-height: 42px;
  padding: 0 10px;
}

.input-tips {
  padding: 2px 10px;
  background-color: #fff6f7;
  border-radius: 4px;
  border-left: 5px solid #fe6c6f;
  margin: 20px 0;

    p {
      font-size: 14px;
      color: #5e6d82;
      line-height: 1em;
    }

}

.date {
  vertical-align: middle;
  margin-bottom: 10px;
  margin-right: 10px;
}

.vue-treeselect__control {
  line-height: 36px;
}

.dialog-action {
  .btn {
    margin-left: 8px;
  }
}

.actlist .btn {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px 10px 0;
}

.server-view {
  width: 22em;
  height: 300px;
  overflow: auto;
  span {
    width: 3.4em;
    display: inline-block;
  }
}

// 自定义表格样式
.myTable::-webkit-scrollbar-track-piece { //滚动条凹槽的颜色，还可以设置边框属性
  background-color:#f8f8f8;
}
.myTable::-webkit-scrollbar {//滚动条的宽度
  width:12px;
  height:12px;
}
.myTable::-webkit-scrollbar-thumb {//滚动条的设置
  background-color:#dddddd;
  background-clip:padding-box;
  min-height:28px;
}
.myTable::-webkit-scrollbar-thumb:hover {
  background-color:#bbb;
}
.myTable {
  width:100%;
  max-height: 700px;
  overflow: scroll;
  color: #606266;
  table {
    font-size: 14px;
    border-color: #EBEEF5;
    text-align: left;
    position: relative;
    thead {
      color: #909399;
      height: 26px;
      th {
        line-height: 26px;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
        text-overflow: ellipsis;
        padding: 8px 10px;
      }
    }
    tbody {
      tr {
        td {
          font-size: 12px;
          white-space: nowrap;
          line-height: 23px;
          padding: 7px 10px;
        }
      }
    }

  }
}

// 页面适配
@media (max-width:1024px) {
  .table-content{
    max-height: 645px!important;
  }
  .filter-item{
    width: 100%!important;
  }
}

.el-collapse {
  border-top: 0;
}

.el-collapse-item__header {
  height: 25px;
  line-height: 25px;
}

.el-collapse-item__wrap {
  border-bottom: 0; 
}

.el-collapse-item__content {
  padding-bottom: 0;
}

.el-table th {
  user-select: initial;
}

.range-group {
  padding: 1px 10px;
  background-color: #fff6f7;
  border-radius: 4px;
  border-left: 5px solid #fe6c6f;
  margin: 0;

  p {
    font-size: 14px;
    color: #5e6d82;
    line-height: 1em;
  }
}
.el-table {
  font-size: 12px;
}
.el-table td, .el-table th {
  padding: 5px 0;
}
.el-table th>.cell {
  padding-left: 2px;
  padding-right: 2px;
}
.el-tag {
  height: 23px;
  line-height: 23px;
  padding: 0 5px;
}
.el-button--small, .el-button--small.is-round {
  padding: 5px 0;
}